#!/bin/bash

#######################
# ROOT check          #
#######################
function check_if_root {
        # check if user is root
        if [ $(id -u) != "0" ]; then
                echo -e "${RED}"
                echo -e "###################################################"
                echo -e "# WARNING!!! NOT ROOT USER                        #"
                echo -e "# YOU NEED TO BE root TO RUN THIS SCRIPT {sudo}   #"
                echo -e "###################################################"
                echo -e "${NONE}" && tput sgr0
                exit
        fi

        create_init_sets
}

case "$1" in
check_if_root) check_if_root
	;;
*) echo "NO SUCH FUNCTION $1"
	;;
esac
